package com.zhj.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhj.product.entity.pojo.ItemsComments;
import com.zhj.product.entity.req.ItemsCommentsPageReq;
import org.apache.ibatis.annotations.Param;

public interface ItemsCommentsMapper extends BaseMapper<ItemsComments> {

    /**
     * 分页查询评论
     * @param commentsPage
     * @param itemsCommentsPageReq
     * @return
     */
    IPage<ItemsComments> selectItemsCommentsPage(@Param("page") IPage<ItemsComments> commentsPage,
                                                 @Param("req") ItemsCommentsPageReq itemsCommentsPageReq);

}